package com.zhihaihe.file.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhihaihe.file.pojo.Role;
import com.zhihaihe.file.pojo.UserBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<UserBean> {
    /**
     * 插入用户角色表
     * @param userId
     * @param roleId
     */
    void insertUserRole(@Param("userId") Long userId,@Param("roleId") long roleId);

    List<String> getUserRole(Long userId);
}
